package org.example.exp2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Getter
@Setter
@Accessors(chain = true)
@TableName("person")
@ApiModel(value = "Person对象",description = "")
public class Person implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "personId",type = IdType.AUTO)
    private int personId;

    @TableField(value = "name")
    private String name;

    @TableField(value = "age")
    private int age;

    @TableField(value = "email")
    private String email;
}
